<?
 include 'conn.php';

$str="QWERTYUIOPASDFGHJKLZXCVBNM1234567890qwertyuiopasdfghjklzxcvbnm_-$@";


$result = mysql_query("select id,title,imagefile from vbyzc_content  where series=10 order by title"); 
while($row = mysql_fetch_array($result)) { 
	$imgfile='UP_'.substr(str_shuffle($str),5,20).'.jpg';
	
	echo "<div>update vbyzc_content set imagefile='$imgfile' where id={$row[0]};</div>";
	
} 
mysql_free_result($result); 
?>
</div>